/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ncs.modelo.impl;

import java.util.List;
import ncs.modelo.dao.TipoFuenteInfoDao;
import ncs.modelo.entidades.TTipoFuenteInfo;
import ncs.modelo.util.HibernateUtil;
import org.hibernate.classic.Session;

/**
 *
 * @author yoel
 */
public class TipoFuenteInfoDaoImpl implements TipoFuenteInfoDao{
    
    @Override
    public List<TTipoFuenteInfo> buscarTodos() {
        Session session = HibernateUtil.getSessionFactory().openSession();
        return session.createQuery("FROM TTipoFuenteInfo").list();
    }
    
}
